package com.haha.qqchannelbot.entity;

import lombok.Getter;

@Getter
public enum LiangEnum {

    LIAGNG1("liang1", "⭐️"),
    LIAGNG2("liang2", "⭐️⭐️"),
    LIAGNG3("liang3", "⭐️⭐️⭐️"),
    LIAGNG4("liang4", "⭐️⭐️⭐️⭐️"),
    LIAGNG5("liang5", "⭐️⭐️⭐️⭐️⭐️"),
    ;


    LiangEnum(String name, String star) {
        this.name = name;
        this.star = star;
    }

    private String name;
    private String star;

    public static String getStar(String name) {
        for (LiangEnum liangEnum : LiangEnum.values()) {
            if (liangEnum.getName().equals(name)) {
                return liangEnum.getStar();
            }
        }
        return null;
    }

}
